<html>
	<head>
		<title>Report Penerimaan Jurusan</title>
		<style>
			#list_laporan_penjualan{
				font-size: 10px;
			}
			thead{
				background-color: black;
				color: white;
			}

		</style>
	</head>
	<body>
	<center><h1>Laporan Penjualan</h1>
		<br/>
		<img src="./media/images/logo2.png"/>
		<br/>
		Periode : <?php echo $tgl_awal ?> s/d <?php echo $tgl_akhir ?>
		<br/>
		Cabang : <?php echo $cabang ?>
	</center>
	<br/><br/>
	<table id="list_laporan_penjualan" width="100%" align="center" border="0">
		<thead>
			<tr>
				<th>No</th>
				<th>Tanggal Berangkat</th>
				<th>No. SPJ</th>
				<th>Jurusan</th>
				<th>Kode Akun</th>
				<th>No. Polisi</th>
				<th>Total Tiket</th>
				<th>Total Tiket Void</th>
				<th>Total Omset</th>
				<th>Total Discount</th>
				<th>Total Fee Agen</th>
				<th>Total Void</th>
			</tr>
		</thead>
		<tbody>
			<?php for ($i = 0; $i < count($list_result); $i++) { ?>
				<tr>
					<td><?php echo ($i+1) ?></td>
					<td><?php echo $list_result[$i]['tglspj'] ?></td>
					<td><?php echo $list_result[$i]['NoSPJ'] ?></td>
					<td><?php echo $list_result[$i]['asal'] . "-" . $list_result[$i]['tujuan'] ?></td>
					<td><?php echo $kode_coa[$i]['kode_coa'] ?></td>
					<td><?php echo $list_result[$i]['NoPol'] ?></td>
					<td><?php echo $list_result[$i]['total_penumpang'] ?></td>
					<td><?php echo $list_result[$i]['tiket_void'] ?></td>
					<td>Rp <?php echo number_format($list_result[$i]['total_omset'],0,',','.') ?></td>
					<td>Rp <?php echo number_format($list_result[$i]['total_discount'],0,',','.') ?></td>
					<td>Rp <?php echo number_format($list_result[$i]['fee_agen'],0,',','.') ?></td>
					<td>Rp <?php echo number_format($list_result[$i]['total_void'],0,',','.') ?></td>
				</tr>
			<?php }
			?>
		</tbody>
	</table>
</body>
</html>